package com.linkhub.oms.admin.modules.stock.enums;

import com.linkhub.oms.common.enums.IEnumConvert;

/**
 * @ClassName BatchStatus
 * @Description TODO
 * @Author XieYu
 * @Date 2024/7/8 22:25
 * @Version 1.0
 */
public enum BatchStatus implements IEnumConvert<Integer> {
    AVAILABLE(1, "批次可用"), TERMINATED(0, "批次完结");

    private int value;
    private String desc;

    private BatchStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getCode() {
        return this.value;
    }
}
